using System;

class App {
  static void Main() {
      Object o = 5;

       typeof(App).GetMethod("ChangeBoxedInt32").Invoke(null, new Object[] { o });
       Console.WriteLine(o);
   }

   public static void ChangeBoxedInt32(ref Int32 x) {
      x = 123;  
   }
}